﻿@model IEnumerable<CRMnewm.ContaktsNabor>

@{
    ViewBag.Title = "Index";
}

<h2>Контакты</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
@*        <th>
            @Html.DisplayNameFor(model => model.Contakts_id)
        </th>*@
        <th>
            @Html.DisplayNameFor(model => model.Family)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Name)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Surname)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Status)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Skype)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ISQ)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
@*        <td>
            @Html.DisplayFor(modelItem => item.Contakts_id)
        </td>*@
        <td>
            @Html.DisplayFor(modelItem => item.Family)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Surname)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Status)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Skype)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ISQ)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new {  id=item.Contakts_id }) |
            @Html.ActionLink("Details", "Details", new { id=item.Contakts_id  }) |
            @Html.ActionLink("Delete", "Delete", new {  id=item.Contakts_id })
        </td>
    </tr>
}

</table>
